package factorymethod.example;

import factorymethod.example.concrete.AddFactory;

/**
 * @author Chen Guang
 * @date 2019/4/8 0008 上午 11:20
 */
public class Test {
    public static void main(String[] args) {
        IFactory iFactory = new AddFactory();
        Operation operation = iFactory.createOperation();
        System.out.println(operation.getResult(1, 2));
    }
}
